<%--
  Created by IntelliJ IDEA.
  User: Gao
  Date: 2023/8/4
  Time: 15:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css"  media="all">
</head>
<body>
    <table class="layui-hide" id="test" lay-filter="test"></table>

    <script src="${pageContext.request.contextPath}/static/layui/layui.js" charset="utf-8"></script>
    <script>
        layui.use('table', function(){
            var table = layui.table;

            table.render({
                elem: '#test'
                ,url:'${pageContext.request.contextPath}/banji?method=selectByPage'
                ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
                ,cols: [[
                    {field:'id', width:80, title: 'ID', sort: true}
                    ,{field:'name', width:80, title: '用户名'}
                    ,{field:'address', width:80, title: '性别', sort: true}
                ]]
                ,page: true
            });
        });
    </script>
</body>
</html>
